package com.guigu.pd.aggregation.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.common.utils.PageUtils;
import com.guigu.common.utils.Query;

import com.guigu.pd.aggregation.dao.CoreOrgDao;
import com.guigu.pd.aggregation.entity.CoreOrgEntity;
import com.guigu.pd.aggregation.service.CoreOrgService;


@Service("coreOrgService")
public class CoreOrgServiceImpl extends ServiceImpl<CoreOrgDao, CoreOrgEntity> implements CoreOrgService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CoreOrgEntity> page = this.page(
                new Query<CoreOrgEntity>().getPage(params),
                new QueryWrapper<CoreOrgEntity>()
        );

        return new PageUtils(page);
    }

}